﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharpReview
{
//    定义一个员工类，存放用户的工号、姓名、性别、学历和部门信息；
//定义两个构造函数:
//一个是无参构造函数，学历默认为专科；
//一个有参构造函数，根据参数对类的属性进行初始化。
    class StuffInfo
    {
        public int WorkID { get; set; }
        public string Name { get; set; }
        public string Gender { get; set; }
        public string Eduction { get; set; }
        public string Department { get; set; }

        public StuffInfo()
        {
            this.Eduction = "专科";
        }

        public StuffInfo(int id , string name , string gender , string eduction ,string department)
        {
            this.WorkID = id;
            this.Name = name;
            this.Gender = gender;
            this.Eduction = eduction;
            this.Department = department;
        }
    }
}
